<template>
    <div class="gentle-content-wrapper">
        <a-button type="primary" @click="openModal">打开模态框</a-button>
        <popup></popup>
    </div>
</template>

<script setup lang="ts">
import { Button as AButton, Modal as AModal } from 'ant-design-vue';
import popup from "/@/views/testDemo/process/popup.vue"
import { ref } from 'vue'
// 进行ref数据的加载和转换
const childRef = ref();
// 调用子组件的一个方法
const openModal = () => {
    (childRef.value as any).openModal();
}

</script>

<style scoped></style>